package cosmos.dubbo.dto;

import cosmos.dubbo.enums.Gender;
import cosmos.dubbo.enums.Status;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lodsve.core.utils.StringUtils;

/**
 * .
 *
 * @author sunhao(sunhao.java@gmail.com)
 * @version V1.0, 16/1/18 下午6:43
 */
@ApiModel(description = "用户domain")
public class UserDto implements Serializable {
    @ApiModelProperty(value = "编号", required = true)
    private Long id;
    @ApiModelProperty(value = "用户名", required = true)
    private String userName = StringUtils.EMPTY;
    @ApiModelProperty(value = "电话号码", required = true)
    private String telNo;
    @ApiModelProperty(value = "性别", required = true)
    private Gender sex = Gender.UNKNOWN;
    @ApiModelProperty(value = "状态", required = true)
    private Status status = Status.ENABLED;

    @ApiModelProperty(value = "编号", required = true)
    public Long getId() {
        return id;
    }

    @ApiModelProperty(value = "编号", required = true)
    public void setId(Long id) {
        this.id = id;
    }

    @ApiModelProperty(value = "用户名", required = true)
    public String getUserName() {
        return userName;
    }

    @ApiModelProperty(value = "用户名", required = true)
    public void setUserName(String userName) {
        this.userName = userName;
    }

    @ApiModelProperty(value = "电话号码", required = true)
    public String getTelNo() {
        return telNo;
    }

    @ApiModelProperty(value = "电话号码", required = true)
    public void setTelNo(String telNo) {
        this.telNo = telNo;
    }

    @ApiModelProperty(value = "性别", required = true)
    public Gender getSex() {
        return sex;
    }

    @ApiModelProperty(value = "性别", required = true)
    public void setSex(Gender sex) {
        this.sex = sex;
    }

    @ApiModelProperty(value = "状态", required = true)
    public Status getStatus() {
        return status;
    }

    @ApiModelProperty(value = "状态", required = true)
    public void setStatus(Status status) {
        this.status = status;
    }
}
